package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 管理员充值历史对象 cz_history
 *
 * @author zt
 * @date 2023-11-27
 */
public class CzHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long czUserId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long jsczUserId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal edu;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date czDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCzUserId(Long czUserId)
    {
        this.czUserId = czUserId;
    }

    public Long getCzUserId()
    {
        return czUserId;
    }
    public void setJsczUserId(Long jsczUserId)
    {
        this.jsczUserId = jsczUserId;
    }

    public Long getJsczUserId()
    {
        return jsczUserId;
    }
    public void setEdu(BigDecimal edu)
    {
        this.edu = edu;
    }

    public BigDecimal getEdu()
    {
        return edu;
    }
    public void setCzDate(Date czDate)
    {
        this.czDate = czDate;
    }

    public Date getCzDate()
    {
        return czDate;
    }


    public CzHistory(Long czUserId, Long jsczUserId, BigDecimal edu, Date czDate) {
        this.czUserId = czUserId;
        this.jsczUserId = jsczUserId;
        this.edu = edu;
        this.czDate = czDate;
    }

    public CzHistory() {
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("czUserId", getCzUserId())
            .append("jsczUserId", getJsczUserId())
            .append("edu", getEdu())
            .append("czDate", getCzDate())
            .toString();
    }
}
